//
//  LcbAutomaticScrollView.h
//  huien
//
//  Created by yiban on 2017/5/26.
//  Copyright © 2017年 lcb. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LcbAutomaticScrollV1Delegate<NSObject>
@optional
- (void)tapPageControl;       //点击pageControl
- (void)tapScrollView;        //点击scrollView
- (void)tapScrollView:(NSInteger)currentIndexImage;        //点击scrollView
@end

@interface LcbAutomaticScrollView : UIView<UIScrollViewDelegate>
@property (strong, nonatomic) UIScrollView *scrollView;
@property (assign, nonatomic) NSUInteger currentIndexImage;  //当前播放第几张图
@property (strong, nonatomic) NSMutableArray *imagesUrl;    //通过url加载，轮播的图片的url
@property (strong, nonatomic) NSMutableArray *images;       //直接读取图片，轮播的图片
@property (assign, nonatomic) NSInteger timeInterval;       //轮播时间间隔 默认2s
@property (assign, nonatomic) BOOL needAutomaticScroll;     //是否需要自动轮播 默认YES
@property (strong, nonatomic) UIPageControl *pageControl;
@property (assign, nonatomic) BOOL pageControlInTheMiddle;  //pageControl是否居中
@property (assign, nonatomic) id <LcbAutomaticScrollV1Delegate> delegate;
@end
